package com.my.hp_hr.dao;

import com.my.hp_hr.entity.Employee;
import com.my.hp_hr.util.BaseDAO;

public class UserDao extends BaseDAO {

    public Employee userLogin(String employeeNumber, String password) throws Exception {
        String sql = "select * from employee where employee_number =? && password=?";
        Object[] obj ={employeeNumber,password};
        Employee employee = getOne(sql, new Employee(), obj);
        return employee;
    }
}
